import {
	$api,
	$config
} from '@/api/request/index.js'

/**
 * 分页查询
 * @param {Object} data
 */
export function getPage(data) {
	return $api({
		url: $config.bmsURL + '/blog/article/getPage',
		method: 'get',
		data: data,
	})
}

/**
 * 查询
 * @param {Object} data
 */
export function get(data) {
	return $api({
		url: $config.bmsURL + '/blog/article/get',
		method: 'get',
		data: data,
	})
}

/**
 * 查询时间归档
 * @param {Object} data
 */
export function getTimeArchive(data) {
	return $api({
		url: $config.bmsURL + '/blog/article/getTimeArchive',
		method: 'get',
		data: data,
	})
}
